package com.android.signhelper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ikata on 2018/11/14.
 */

public class SignInfo implements Parcelable{
    private int available;
    private String signId;
    private String bleId;
    private String devUuid;

    public SignInfo() {
    }


    public SignInfo(int available, String signId, String bleId, String devUuid) {
        this.available = available;
        this.signId = signId;
        this.bleId = bleId;
        this.devUuid = devUuid;
    }

    protected SignInfo(Parcel in) {
        available = in.readInt();
        signId = in.readString();
        bleId = in.readString();
        devUuid = in.readString();
    }

    public static final Creator<SignInfo> CREATOR = new Creator<SignInfo>() {
        @Override
        public SignInfo createFromParcel(Parcel in) {
            return new SignInfo(in);
        }

        @Override
        public SignInfo[] newArray(int size) {
            return new SignInfo[size];
        }
    };

    public int isAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }

    public String getSignId() {
        return signId;
    }

    public void setSignId(String signId) {
        this.signId = signId;
    }

    public String getBleId() {
        return bleId;
    }

    public void setBleId(String bleId) {
        this.bleId = bleId;
    }

    public String getDevUuid() {
        return devUuid;
    }

    public void setDevUuid(String devUuid) {
        this.devUuid = devUuid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(available);
        dest.writeString(signId);
        dest.writeString(bleId);
        dest.writeString(devUuid);
    }
}
